import request from '@/utils/request';

// 健康度
export function querySegmentHealth(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkPointAnalysis/querySegmentHealth',
		method: 'post',
		data: data,
	});
}

// 网端详情列表
export function querySegmentComponentList(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkPointAnalysis/querySegmentComponentList',
		method: 'post',
		data: data,
	});
}

// 网端速率
export function queryByteRatesTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkPointAnalysis/queryByteRatesTrend',
		method: 'post',
		data: data,
	});
}

// 网端告警会话趋势
export function queryCompomentAlarmTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkPointAnalysis/queryCompomentAlarmTrend',
		method: 'post',
		data: data,
	});
}

// 网端健康度趋势
export function queryCompomentHealthTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkPointAnalysis/queryCompomentHealthTrend',
		method: 'post',
		data: data,
	});
}

// 网端包率趋势
export function queryCompomentPacketTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkPointAnalysis/queryCompomentPacketTrend',
		method: 'post',
		data: data,
	});
}

// 网端会话数趋势
export function queryCompomentSessionTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkPointAnalysis/queryCompomentSessionTrend',
		method: 'post',
		data: data,
	});
}

// 网端响应趋势
export function queryCompomentResponseTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkPointAnalysis/queryCompomentResponseTrend',
		method: 'post',
		data: data,
	});
}

// 零窗口数趋势
export function queryCompomentZeroTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkPointAnalysis/queryCompomentZeroTrend',
		method: 'post',
		data: data,
	});
}

// 重置趋势
export function queryCompomentResetTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkPointAnalysis/queryCompomentResetTrend',
		method: 'post',
		data: data,
	});
}
// 重传趋势
export function queryCompomentReTryTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkPointAnalysis/queryCompomentReTryTrend',
		method: 'post',
		data: data,
	});
}

// 网络传输耗时和重传时延
export function queryCompomentDelayTrend(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/systemLinkPointAnalysis/queryCompomentDelayTrend',
		method: 'post',
		data: data,
	});
}

// it路径图
export function getDetailItRoad(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/system/network/getDetailItRoad',
		method: 'post',
		data: data,
	});
}

// 网络流量概况IT路径图修改节点坐标数据
export function updateSegmentPosition(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/network/system/flow/saveOrUpdateSegmentPosition',
		method: 'post',
		data: data,
	});
}
